home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form MantForm
- Caption = "Maintenance"
- ClientHeight = 4020
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- ControlBox = 0 'False
- Height = 4425
- Left = 1035
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4020
- ScaleWidth = 7365
- Top = 1140
- Visible = 0 'False
- Width = 7485
- Begin CommandButton MasterP
- Caption = "Master Password"
- Height = 495
- Left = 4320
- TabIndex = 13
- Top = 3240
- Width = 1935
- End
- Begin CommandButton AddNew
- Caption = "&Add New"
- Height = 495
- Left = 360
- TabIndex = 12
- Top = 3240
- Width = 1215
- End
- Begin CommandButton Exit
- Caption = "&Exit"
- Height = 495
- Left = 6480
- TabIndex = 8
- Top = 3240
- Width = 735
- End
- Begin TextBox Text3
- Height = 285
- Left = 4920
- TabIndex = 7
- Top = 1320
- Width = 2295
- End
- Begin TextBox Text2
- Height = 285
- Left = 4920
- TabIndex = 6
- Top = 840
- Width = 2295
- End
- Begin TextBox Text1
- Height = 285
- Left = 4920
- TabIndex = 5
- Top = 360
- Width = 2295
- End
- Begin CommandButton Remove
- Caption = "&Remove"
- Height = 495
- Left = 3120
- TabIndex = 4
- Top = 3240
- Width = 975
- End
- Begin CommandButton Change
- Caption = "&Change"
- Height = 495
- Left = 1920
- TabIndex = 3
- Top = 3240
- Width = 855
- End
- Begin ListBox Password
- Height = 225
- Left = 3840
- TabIndex = 2
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin ListBox Program
- Height = 225
- Left = 2280
- TabIndex = 1
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin ListBox ProgList
- Height = 2370
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 2295
- End
- Begin Label Label3
- Caption = "Password:"
- Height = 255
- Left = 3720
- TabIndex = 11
- Top = 1320
- Width = 975
- End
- Begin Label Label2
- Caption = "Program Name:"
- Height = 255
- Left = 3360
- TabIndex = 10
- Top = 840
- Width = 1335
- End
- Begin Label Label1
- Caption = "Program Description:"
- Height = 255
- Left = 2880
- TabIndex = 9
- Top = 360
- Width = 1935
- End
- Sub About_Click ()
- End Sub
- Sub AddNew_Click ()
- If MantForm.Text1.Text = "" Then
- MsgBox "Need a Program Description", 0, "Add Program"
- MantForm.Text1.SetFocus
- Exit Sub
- End If
- If MantForm.Text2.Text = "" Then
- MsgBox "Need a Program Name", 0, "Add Program"
- MantForm.Text2.SetFocus
- Exit Sub
- End If
- If MantForm.Text3.Text = "" Then
- MsgBox "Need a Password", 0, "Add Program"
- MantForm.Text3.SetFocus
- Exit Sub
- End If
- MantForm.ProgList.AddItem MantForm.Text1.Text
- MantForm.Program.AddItem MantForm.Text2.Text
- MantForm.Password.AddItem MantForm.Text3.Text
- MantForm.Text1.Text = ""
- MantForm.Text2.Text = ""
- MantForm.Text3.Text = ""
- End Sub
- Sub Change_Click ()
- If MantForm.ProgList.ListIndex = -1 Then
- MsgBox "No program selected", 0, "Change Program"
- MantForm.Text1.SetFocus
- Exit Sub
- End If
- If MantForm.Text1.Text = "" Then
- MsgBox "Need a Program Description", 0, "Add Program"
- MantForm.Text1.SetFocus
- Exit Sub
- End If
- If MantForm.Text2.Text = "" Then
- MsgBox "Need a Program Name", 0, "Add Program"
- MantForm.Text2.SetFocus
- Exit Sub
- End If
- If MantForm.Text3.Text = "" Then
- MsgBox "Need a Password", 0, "Add Program"
- MantForm.Text3.SetFocus
- Exit Sub
- End If
- MantForm.Program.ListIndex = MantForm.ProgList.ListIndex
- MantForm.Password.ListIndex = MantForm.ProgList.ListIndex
- MantForm.ProgList.RemoveItem MantForm.ProgList.ListIndex
- MantForm.Program.RemoveItem MantForm.Program.ListIndex
- MantForm.Password.RemoveItem MantForm.Password.ListIndex
- MantForm.ProgList.AddItem MantForm.Text1.Text
- MantForm.Program.AddItem MantForm.Text2.Text
- MantForm.Password.AddItem MantForm.Text3.Text
- MantForm.Text1.Text = ""
- MantForm.Text2.Text = ""
- MantForm.Text3.Text = ""
- End Sub
- Sub Exit_Click ()
- MantForm.Visible = False
- Call RecordMaint
- End Sub
- Sub MasterP_Click ()
- NewPass1$ = InputBox("Enter New Password", "Change Master Password")
- NewPass2$ = InputBox("Re-Enter New Password", "Verify New Master Password")
- If NewPass1$ = NewPass2$ Then MasterPassword = NewPass1$
- End Sub
- Sub MasterPassword_Click ()
- MsgBox (MasterPassword)
- NewPass1$ = InputBox$("Enter new Password", "Change Master Password")
- If NewPass1$ = "" Then Exit Sub
- NewPass2$ = InputBox$("Re-enter new Password", "Verify New Master Password")
- If NewPass2$ = "" Then Exit Sub
- If NewPass1$ = NewPass2$ Then MasterPassword = NewPass1$
- End Sub
- Sub ProgList_Click ()
- MantForm.Program.ListIndex = MantForm.ProgList.ListIndex
- MantForm.Password.ListIndex = MantForm.ProgList.ListIndex
- MantForm.Text1 = MantForm.ProgList.Text
- MantForm.Text2 = MantForm.Program.Text
- MantForm.Text3 = MantForm.Password.Text
- End Sub
-
- Sub Remove_Click ()
- If MantForm.ProgList.ListIndex = -1 Then
- MsgBox "No program selected", 0, "Remove Program"
- Exit Sub
- End If
- MantForm.Program.ListIndex = MantForm.ProgList.ListIndex
- MantForm.Password.ListIndex = MantForm.ProgList.ListIndex
- MantForm.ProgList.RemoveItem MantForm.ProgList.ListIndex
- MantForm.Program.RemoveItem MantForm.Program.ListIndex
- MantForm.Password.RemoveItem MantForm.Password.ListIndex
- MantForm.Text1.Text = ""
- MantForm.Text2.Text = ""
- MantForm.Text3.Text = ""
- End Sub
-